package shopping;

import java.util.Arrays;

public class User {
	private String userName;
	private char[] password;
	private String address;
	private ShoppingCart shoppingCart;
	
	public User(String userName, char[] password, String address) {
		super();
		this.userName = userName;
		this.password = password;
		this.address = address;
		this.shoppingCart = new ShoppingCart();
	}
	

	public ShoppingCart getShoppingCart() {
		return shoppingCart;
	}

	public void setShoppingCart(ShoppingCart shoppingCart) {
		this.shoppingCart = shoppingCart;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public char[] getPassword() {
		return password;
	}

	public void setPassword(char[] password) {
		this.password = password;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}


	@Override
	public String toString() {
		return "User [userName=" + userName + ", password=" + Arrays.toString(password) + ", address=" + address
				+ ", shoppingCart=" + shoppingCart + "]";
	}
	
	
}
